const ConnectionIdKey = 'ConnectionId'
const Token = 'token'
const Username = 'username'

export function getConnectionId() {
    return sessionStorage.getItem(ConnectionIdKey)
}

export function setConnectionId(connectionId) {
    return sessionStorage.setItem(ConnectionIdKey, connectionId)
}

export function removeConnectionId() {
    return sessionStorage.removeItem(ConnectionIdKey)
}

export function getToken() {
    return localStorage.getItem(Token)
}

export function setToken(token) {
    return localStorage.setItem(Token, token)
}

export function removeToken() {
    return localStorage.removeItem(Token)
}

export function getUsername() {
    return localStorage.getItem(Username)
}

export function setUsername(username) {
    return localStorage.setItem(Username, username)
}

export function removeUsername() {
    return localStorage.removeItem(Username)
}